package net.lab1024.sa.admin.module.business.roland.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.lab1024.sa.admin.module.business.roland.constant.SeatAreaEnum;

/**
 * 订单详情 列表VO
 *
 * @Author dragon
 * @Date 2023-12-11 13:29:10
 * @Copyright dragon
 */

@Data
public class RolandOrderDetailVO {


    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "楼层")
    private Integer floor;

    @ApiModelProperty(value = "排号")
    private String seatRow;

    @ApiModelProperty(value = "座位号")
    private Integer seatNo;

    @ApiModelProperty(value = "位置：11左前，12左后，21中前，22中后，31右前，32右后")
    private Integer position;

    public String getPositionStr() {
        SeatAreaEnum seatAreaEnum = SeatAreaEnum.valueOf(this.position);
        if (seatAreaEnum == null) {
            return null;
        }
        return seatAreaEnum.getDesc();
    }

}